﻿using System;
using System.Collections.Generic;
using WebApplication11.Dao;
using WebApplication11.Models;

namespace WebApplication11.Services;

public class detailService
{
    private userDao _userDao = new userDao();
    
    public List<forest> getForests(String name)
    {
        return _userDao.getForests(name);
    }
    
    public bool destory(String username)
    {
        return _userDao.destory(username);
    }

    public bool changePassword(String username, String password)
    {
        return _userDao.changePassword(username, password);
    }
}